<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
<%--
  Created by IntelliJ IDEA.
  User: vx
  Date: 12/4/13
  Time: 11:17 PM
  To change this template use File | Settings | File Templates.
--%>
<html>
<head>
    <title>Submit new bug</title>
    <link rel="shortcut icon" type="image/x-icon" href="<c:out value="${pageContext.request.contextPath}" />/resources/favicon.ico" />
    <!-- Latest compiled and minified CSS -->
    <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
    <link rel="stylesheet" href="quarcum.dyndns.org:8087/resources/css/main.css">
</head>
<body>
<div class="container">
    <%@ include file="header_login.jsp" %>

        <div class="jumbotron">

                <ol class="breadcrumb">
                    <li><a href="http://quarcum.dyndns.org:8087/">Hub</a></li>
                    <li><a href="http://quarcum.dyndns.org:8087/vxBug/">vxBug</a></li>
                    <li><a href="http://quarcum.dyndns.org:8087/vxBug/program/${p.id}">Buglist for ${p.name}</a></li>
                    <li class="active">Add bug</li>
                    <!--
                    <li><a href="#">Library</a></li>
                    <li class="active">Data</li> -->
                </ol>

            <div class="panel panel-default">
                <div class="panel-body">
                    <form method="POST" action="<c:url value="/program/${p.id}/addBug" />" >

<input type="hidden" name="programId" value="${p.id}" />
<security:authentication property="name" var="username"/>
<input type="hidden" name="openerUserName" value="${username}" />


    Bug title
    <br />
    <td><input type="text" name="bugTitle" />
        <br />
        <c:out value="${p.name}" /> version
        <br />
    <td><input type="text" name="programVersionWithBug" />
        <br />
        Priority
        <br />
        <select name="priority">
            <c:forEach items="${BugPriority}" var="bp">
                <option value="${bp}">
                    <c:out value="${bp}" />
                </option>
            </c:forEach>
        </select>
        <br />
        Describe bug and steps to reproduce as clearly as you can
        <br />
        <textarea name="bugInfo" cols="40" rows="3"></textarea><br>
        <br />

        <input type="submit" value="Submit new bug" /> <h4><font color="grey">Programmer will be notified about new bugs</font></h4>
    
</form>
                </div>
            </div>
        </div> <!-- /jumbotron -->
</div> <!-- /container -->
</body>
</html>